package com.dcdata.jt809server.protocol.decoder.factory;

import com.dcdata.jt809server.packet.BasePacket;
import com.dcdata.jt809server.packet.TrafficHeartbeatResponsePacket;
import lombok.extern.slf4j.Slf4j;

/**
 * program: JT809Server
 * description: 心跳解码器
 * @author DCDATA
 * @date 2020-03-24 15:58
 **/
@Slf4j
public class HeartbeatDecoder implements Decoder {

    @Override
    public BasePacket decoder(byte[] bytes) {
        log.debug("心跳解码器！");
        return new TrafficHeartbeatResponsePacket();
    }
}
